package com.letv.whatslive.model;

import com.letv.whatslive.common.utils.DateUtils;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by Administrator on 2015/12/30.
 */
@Setter
@Getter
public class GuideImageSrcForCmsShow {
    private Long id;

    private Integer picType;


    private String picName;


    private String picUrl;


    private Long createTime;

    private String createTimeStr;

    private Integer isOpen;


    private Long updateTime;

    private String updateTimeStr;

    private Long startTime;

    private String startTimeStr;

    private Long endTime;

    private String endTimeStr;

    private Long showTime;


    public void setFieldsFromGuideImageSrc(GuideImageSrc guideImageSrc){
        id=guideImageSrc.getId();

        picType=guideImageSrc.getPicType();

        picName=guideImageSrc.getPicName();

        picUrl=guideImageSrc.getPicUrl();

        createTime=guideImageSrc.getCreateTime();

        createTimeStr= DateUtils.long2YMDHMS(createTime);

        isOpen=guideImageSrc.getIsOpen();


        updateTime=guideImageSrc.getUpdateTime();

        updateTimeStr =DateUtils.long2YMDHMS(updateTime);

        startTime=guideImageSrc.getStartTime();

        startTimeStr =DateUtils.long2YMDHMS(startTime);

        endTime=guideImageSrc.getEndTime();

        endTimeStr =DateUtils.long2YMDHMS(endTime);

        showTime=guideImageSrc.getShowTime();

    }
}
